package IO流;

/**
 * @author:谢君臣
 * @Date:2021/5/19-14:57
 * @version:1.0
 * @function:
 */
public class StringTest {
    public static void main(String[] args) {
        String res = "asdgsdfg%20";
        System.out.println(res);
        try {
            // 1.getClassLLoad
            ClassLoader classLoader = Class.forName("java.lang.String").getClassLoader();
            System.out.println(classLoader);
            // 2 线程所上下文
            ClassLoader loader = Thread.currentThread().getContextClassLoader();
            System.out.println(loader);
            //
            ClassLoader parent = ClassLoader.getSystemClassLoader().getParent();
            System.out.println(parent);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
